package com.example.springboot.modules.system.service;




import com.example.springboot.modules.system.mapper.AutSysUserMapper;
import com.example.springboot.modules.system.model.AutSysUser;
import com.github.pagehelper.PageInfo;
import org.springframework.beans.factory.annotation.Autowired;

import org.springframework.stereotype.Service;



@Service
public class UserService {
    @Autowired
    private AutSysUserMapper autSysUserMapper;

    public AutSysUser selectOne(AutSysUser sysUser) {
        return autSysUserMapper.selectOne(sysUser);
    }

    public PageInfo<AutSysUser> list(AutSysUser autSysUser) {
      return new PageInfo<AutSysUser>(autSysUserMapper.selectAll());
    }
}
